package com.bruce.principle.singleresponsibility.demo1;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/10/22 22:36
 */
@Slf4j
public class Bird {

    public void mainMoveMode(String birdName) {

        if ("鸵鸟".equals(birdName)) {
            log.info(birdName + ":用脚走");
        } else {
            log.info(birdName + ":用翅膀飞");
        }

    }


}
